package homework;

import lombok.Getter;
import lombok.Setter;

/**
 * @classname:Student
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/7 19:17
 * @version: 0.1
 * @since:1.8
 */
@Setter
@Getter

public class Student {
    private String name;
    private    Integer age;

    public Student(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public Student() {
    }

    @Override
    public String toString() {
        return
                 name ;
    }

    public static void main(String[] args) {
        Student student = new Student("张三",23);

        System.out.println(student);
    }
}
